package RpcExsample;

import com.zjut.pojo.User;

public class HelloServiceImpl implements HelloService {

    @Override
    public String hello(String name) throws InterruptedException {
        Thread.sleep(100);
        return "Hello " + name+"2312312312";
    }
    @Override
    public User helloReturnObject() {
        return new User("Ryan",20161123,19);
    }
    @Override
    public User helloWithException() throws Exception {
            throw new Exception("helloWithException has exception");
//        return new User("Ryan",20161123,19);
    }
}  